// 公共css文件
require("../../assets/css/communal.less");

// 工具js文件
let dom = require("../../util/dom.js");

// 广告页js文件
require("./advertising.less");

document.addEventListener("DOMContentLoaded", function () {
	// 点击跳过到登录页
	dom.$("#skip").addEventListener("click", function () {
		window.location.href = "login.html";
	});
	// 倒计时
	let num = 5;
	let timer = setInterval(() => {
		num--;
		dom.$("#num").textContent = num;
		if (num === 0) {
			clearInterval(timer);
			window.location.href = "login.html";
		}
	}, 1000);
});
